let db = require("../../db/db")
let handler = require("../data_model_service_handler")

handler.set_db(db);

let getrows = async function (data, login_info, req, res) {
    if (!data.filter) data.filter = [];
    data.filter.push({ //only mine.
        key: "todo_emp_id", 
        value: login_info.emp_id, 
        like: false 
    }) 
    let rst = await handler.getrows(data, login_info, req, res);
    return rst;
}

module.exports = { getrows }